      1  import java.util.ArrayList;

      2  import java.util.Arrays;

      3

      4  /**

      5     This program shows a solution for a Towers of Hanoi puzzle.

      6  */

      7  public class TowersOfHanoiDemo

      8  {

      9     public static void main(String[] args)

     10     {

     11        final int NDISKS = 5;

     12        TowersOfHanoi towers = new TowersOfHanoi(NDISKS);

     13        towers.move(NDISKS, 0, 2);

     14     }

     15  }